Skip to content

docs: rework the Vercel migration guide for the unikernel runtime class - #196

Merged
felixwidjaja merged 2 commits into
mainfrom
docs/migrate-vercel-unikernel
Nov 30, 2026
Merged

felixwidjaja merged 2 commits into
mainfrom
docs/migrate-vercel-unikernel

Conversation

@felixwidjaja

Copy link
Copy Markdown
Member

Summary

  • Rework guides/migrate-from-vercel.mdx for the unikernel runtime class. The guide no longer deploys on general-purpose.
    • Package the app with datumctl compute build, check it with --analyze, and deploy with --runtime-class=unikernel.
    • Add prerequisites for Docker with BuildKit, compute plugin v0.12.0 or later, and the alb plugin.
    • Fix the basic authentication and troubleshooting entries, and add an IPv4 fallback for the verification step.
  • Correct pages that said envFrom and exec aren't available on unikernel. The live class lists both as supported (datumctl get runtimeclass unikernel). Updated: compute/runtimes/overview.mdx, compute/runtimes/unikernels.mdx, compute/configuration.mdx, compute/troubleshooting.mdx, compute/instance-shell.mdx, compute/limitations-and-roadmap.mdx.

Test plan

Run against datumctl v0.25.0, compute plugin v0.16.4, and alb plugin v0.37.0 on a test project, using a small Astro app with the Node adapter and sharp.

  • datumctl compute build --analyze reports no issues for the guide's Dockerfile
  • datumctl compute deploy --build builds, pushes, and deploys, and the image is pinned by digest
  • --env-from-secret reaches the app on unikernel
  • sharp works in the unikernel
  • Public URL returns 200 for the app routes (IPv4 pinned)
  • Rollback by redeploying an older tag keeps the URL, port, and Secret
  • HOST=0.0.0.0 returns 503 at the edge
  • Basic authentication with alb auth set and unset (credentials take up to a minute to apply)
  • compute restart and the placeholder-check snippet
  • datumctl compute exec runs commands on a unikernel Instance
  • mint broken-links passes
  • Not tested: vercel env pull and the [SENSITIVE] behavior, custom domain attach, the GitHub Actions step, the portal Shell tab, and interactive exec -it

Open questions

  • The class may be renamed to MicroVM publicly. This PR uses unikernel, the current name.
  • Other pages (for example platform/isolation.mdx, platform/kubernetes.mdx, and the general-purpose runtime pages) still describe general-purpose and Kata. They are out of scope here.

🤖 Generated with Claude Code

Move the guide from general-purpose to unikernel: package the app with
datumctl compute build, check it with --analyze, and deploy with
--runtime-class=unikernel. Add the alb plugin and compute plugin v0.12.0
prerequisites, an IPv4 fallback for the verification step, and corrected
basic auth and troubleshooting entries.

Fix pages that said envFrom and exec aren't available on unikernel. The
live unikernel class lists both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@felixwidjaja
felixwidjaja requested a review from a team as a code owner November 30, 2026 08:28
@mintlify

mintlify Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Datum 🟢 Ready View Preview Nov 30, 2026, 8:40 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@scotwells scotwells left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please separate the two deploy paths. Deploying a prebuilt image can run from an empty folder, but the --build alternative needs the app source and Dockerfile. Show where to run that command so someone following the guide builds the intended app.

For sharp, please replace the --analyze check in the Image Optimization row with a runtime check, such as resizing an image in the deployed app. As the packaging step notes, the analyzer can’t verify libraries loaded at runtime, so a clean report doesn’t establish that image processing works.

Split the deploy step into a prebuilt-image path and a build-from-source
path, and show where to run each. Replace the analyze-only check for
sharp with a runtime check on the deployed app.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@scotwells scotwells left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both fixes look good. The source-build example points --build at the app directory, and the guide now verifies sharp by requesting a resized image from the deployed app.

@felixwidjaja
felixwidjaja merged commit f0815de into main Nov 30, 2026
5 checks passed
@felixwidjaja
felixwidjaja deleted the docs/migrate-vercel-unikernel branch November 30, 2026 08:58

This branch was successfully deployed

1 active deployment
staging — 0bc9944b Deployed Nov 30, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants